//
//  UIButtonFactory.h
//  ZouXiu
//
//  Created by zhou huajian on 11-2-1.
//  Copyright 2011 itotemstudio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ISTThemeButton.h"


@interface UIButtonFactory : NSObject {
    
}

+ (ISTThemeButton *)buttonWithType:(UIButtonType)type title:(NSString *)title frame:(CGRect)frame
                         imageName:(NSString *)imageName tappedImageName:(NSString *)tappedImageName
                            target:(id)target action:(SEL)selector tag:(NSInteger)tag;
+ (ISTThemeButton *)buttonWithType:(UIButtonType)type title:(NSString *)title titleFont:(UIFont*)font frame:(CGRect)frame
                         imageName:(NSString *)imageName tappedImageName:(NSString *)tappedImageName
                            target:(id)target action:(SEL)selector tag:(NSInteger)tag ;

+ (UIBarButtonItem*) createBarButtonItem: (NSString*) title
                                iconName:(NSString *)iconName
                                   width:(CGFloat)width
                                  target:(id)target
                                  action:(SEL)selector
                                     tag:(NSInteger)tag
                             destructive:(BOOL)destructive;


+ (UIBarButtonItem*) createBarButtonItemWithImage: (NSString*) title
                                         iconName:(NSString *)iconName
                                     disabledIcon:(NSString*)disabledIconName
                                      hilightIcon:(NSString*)hightIconName
                                            width:(CGFloat)width
                                           target:(id)target
                                           action:(SEL)selector
                                              tag:(NSInteger)tag
                                  backgroundImage:(NSString*)backgrdImage
                          backgroundImageDisabled:(NSString*)backgrdDisabledImage
                         backgroundImageHilighted:(NSString*)backgrdHilightedImage;


@end
